home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3mpcnst.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.0 KB  |  86 lines

  1.  
  2. // JavaScript wrapper for r3mpcnst.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_MPCONSTANT_H = 1;
  7. include("real/code/r3matprp.js")
  8.  
  9.  
  10. var R3CLID_MPCONSTANT = 365;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Fetch the type of the output channel.
  16. // Returns: Integer, type as described in oops/r3typids.h R3TID_FLOAT, R3TID_VECTOR etc.
  17.  
  18. R3MPCM_GETOUTPUTTYPE = 365000;
  19.  
  20. function mR3MPCM_GETOUTPUTTYPE() {
  21.   return   DoA(this.r3obj, 365000, 0, R3TID_INTEGER, 0);
  22. }
  23.  
  24.  
  25.  
  26.  
  27. R3MPCA_Constant = 365500;
  28. function SetR3MPCA_Constant(value) {
  29.   R3Set(this.r3obj, R3MPCA_Constant, value, R3TID_INTEGER, 0); 
  30. }
  31.  
  32. function GetR3MPCA_Constant() {
  33.   return R3Get(this.r3obj, R3MPCA_Constant, R3TID_INTEGER, 0); 
  34. }
  35.  
  36. var R3MPCA_ValueType = 365501; // Integer
  37. R3MPCA_Float = 365502;
  38. function SetR3MPCA_Float(value) {
  39.   R3Set(this.r3obj, R3MPCA_Float, value, R3TID_FLOAT, 0); 
  40. }
  41.  
  42. function GetR3MPCA_Float() {
  43.   return R3Get(this.r3obj, R3MPCA_Float, R3TID_FLOAT, 0); 
  44. }
  45.  
  46. R3MPCA_Vector = 365503;
  47. function SetR3MPCA_Vector(value) {
  48.   R3Set(this.r3obj, R3MPCA_Vector, value, R3TID_VECTOR, 0); 
  49. }
  50.  
  51. function GetR3MPCA_Vector() {
  52.   return R3Get(this.r3obj, R3MPCA_Vector, R3TID_VECTOR, 0); 
  53. }
  54.  
  55. R3MPCA_Vector4 = 365504;
  56. function SetR3MPCA_Vector4(value) {
  57.   R3Set(this.r3obj, R3MPCA_Vector4, value, R3TID_VECTOR4, 0); 
  58. }
  59.  
  60. function GetR3MPCA_Vector4() {
  61.   return R3Get(this.r3obj, R3MPCA_Vector4, R3TID_VECTOR4, 0); 
  62. }
  63.  
  64.  
  65.  
  66. function r3Mpconstant () { 
  67.    this.base = r3God;
  68.    if(arguments.length) {
  69.       this.base(R3CLID_MPCONSTANT, arguments);
  70.    }
  71.    // Methods
  72.    this.GETOUTPUTTYPE=mR3MPCM_GETOUTPUTTYPE;
  73.  
  74.    // Attributes
  75.    this.GetConstant=GetR3MPCA_Constant;
  76.    this.SetConstant=SetR3MPCA_Constant;
  77.    this.GetFloat=GetR3MPCA_Float;
  78.    this.SetFloat=SetR3MPCA_Float;
  79.    this.GetVector=GetR3MPCA_Vector;
  80.    this.SetVector=SetR3MPCA_Vector;
  81.    this.GetVector4=GetR3MPCA_Vector4;
  82.    this.SetVector4=SetR3MPCA_Vector4;
  83. }
  84.  
  85. r3Mpconstant.prototype=new r3Matprop;
  86. // r3mpcnst.h_H